package com.fitbet.entity.bet;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author mohanlan
 *
 */
@Alias("UserBetStatus")
public enum UserBetStatus {
    
    CREATED("已创建", "待支付", "created"),
    
    PAID("已支付", "待开启", "paid"),
    
    OPEN("待审核", "审核中", "open"),
    
    OPENFAILED("审核失败", "开启失败", "openfailed"),
    
    PROCESSING("进行中", "进行中", "processing"),
    
    CLOSE("待结束", "待结束", "closed"),
    
    CLOSEFAILED("结束失败", "结束失败", "closefailed"),
    
    FINISHED("挑战完成", "挑战完成", "finished");
    
    private String description;
    
    private String userDesc;
    
    private String alias;
    
    private UserBetStatus(String description, String userDesc, String alias) {
        this.description = description;
        this.userDesc = userDesc;
        this.alias = alias;
    }
    
    /**
     * 
     * @return
     */
    public String getAlias() {
        return alias;
    }
    
    /**
     * 
     * @return
     */
    public String getUserDesc() {
        return userDesc;
    }
    
    /**
     * 
     * @return
     */
    public String getDescription() {
        return description;
    }
   
    public boolean isOpen() {
    	return this.equals(OPEN);
    }
    
    public boolean isProcessing() {
    	return this.equals(PROCESSING);
    }
    
    public boolean isClose() {
    	return this.equals(CLOSE);
    }
  
    public boolean isFinished() {
    	
    	return this.equals(FINISHED);
    }
    
    public boolean isPaid() {
    	
    	return this.equals(PAID);
    }
    
}
